package com.test.demos.service.impl;

import com.test.demos.dao.UserDAO;
import com.test.demos.po.User;
import com.test.demos.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
	@Resource
	private UserDAO userDAO;

	@Override
	public List<User> getUserPageByCondition(User user, int start, int range){
		List<User> result = null;
		result = userDAO.getUserPageByCondition(user, start, range);
		return result;
	}

	@Override
	public int countUserByCondition(User user){
		return userDAO.countUserByCondition(user);
	}

}
